Skip to content

Comments

MDEV-26851 : Add interface to monitor connections in Galera#242

Merged
janlindstrom merged 1 commit intomasterfrom
connection_monitor_service
Feb 21, 2025
Merged

MDEV-26851 : Add interface to monitor connections in Galera#242
janlindstrom merged 1 commit intomasterfrom
connection_monitor_service

Conversation

@janlindstrom
Copy link
Contributor

No description provided.

@janlindstrom janlindstrom self-assigned this Jan 27, 2025
@janlindstrom janlindstrom force-pushed the connection_monitor_service branch from 9f5c99e to e7f1ad3 Compare January 27, 2025 14:45
@@ -0,0 +1,69 @@
/*
* Copyright (C) 2024-2026 Codership Oy <info@codership.com>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Year 2025 should suffice.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed typo.


#include "compiler.hpp"
#include "wsrep/buffer.hpp"
#include "v26/wsrep_connection_monitor_service.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wsrep-API headers should not be exposed in wsrep-lib public headers. If you need this header for wsrep_connection_key_t type, I guess doing a matching typedef in this header would suffice.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added typedef

@janlindstrom janlindstrom force-pushed the connection_monitor_service branch from e7f1ad3 to e15035c Compare January 28, 2025 09:08
namespace wsrep
{
/* Type tag for connection key. */
typedef const void* wsrep_connection_key_t;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be in global namespace to match the wsrep-API definition.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@janlindstrom janlindstrom force-pushed the connection_monitor_service branch from e15035c to dbc8773 Compare January 30, 2025 05:17
certify_v1 = wsrep_impl::resolve_function<wsrep_certify_fn_v1>(
wsrep_->dlh, WSREP_CERTIFY_V1);

if (services.connection_monitor_service)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@janlindstrom janlindstrom force-pushed the connection_monitor_service branch from dbc8773 to 815ae16 Compare February 21, 2025 09:23
@janlindstrom janlindstrom merged commit b8e0540 into master Feb 21, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants